package com.aidex.system.service.impl;

import com.aidex.common.core.service.BaseServiceImpl;
import com.aidex.system.domain.Agent;
import com.aidex.system.mapper.AgentMapper;
import com.aidex.system.service.AgentService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 接口日志Service业务层处理
 * @author jmy
 * @email jmyinjg@163.com
 * @date 2021-11-14
 */
@Service
@Transactional(readOnly = false)
public class AgentServiceImpl extends BaseServiceImpl<AgentMapper, Agent> implements AgentService {
    private static final Logger log = LoggerFactory.getLogger(AgentServiceImpl.class);

    /**
     * 获取单条数据
     *
     * @param apiLog 接口日志
     * @return 接口日志
     */
    @Override
    public Agent get(Agent apiLog) {
        Agent dto = super.get(apiLog);
        return dto;
    }

    /**
     * 获取单条数据
     *
     * @param id 接口日志id
     * @return 接口日志
     */
    @Override
    public Agent get(String id) {
        Agent dto = super.get(id);
        return dto;
    }


    /**
     *
     * @return 接口日志
     */
    @Override
    public List<Agent> findList(Agent agent) {
        return super.findList(agent);
    }

    /**
     *
     * @param apiLog
     * @return 结果
     */
    @Override
    public boolean save(Agent apiLog) {
        return super.save(apiLog);
    }


    /**
     *
     * @param apiLog
     * @return 结果
     */
    @Override
    public boolean remove(Agent apiLog) {
        return super.remove(apiLog);
    }

    @Override
    public Agent getByAgent(Agent agent) {
return mapper.getByAgent(agent);
    }
}
